<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Page_two</title>
</head>

<body>
	<h1>Page_two</h1>
	<input type="text" value="http://dict.youdao.com" id="myline"/>
</body>
<script type="text/javascript">
	var myline = document.getElementById('myline').value;
	window.onload = function(){
		/* window.location.href = ""+myline+""; */
		window.location.href = myline;
	}
</script>
</html>